﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Proj02_While
{
    // every year, a person would grow 10 cm
    public class Person
    {
        public int age;

        public Person(int value)
        {
            age = value;
        }

        public int Height()
        {
            int height = 0;
            int i = 0;

            while (i < age)
            {
                //i = i + 1;
                i++;

                height = height + 10;
            }

            return height;
        }
    }
}
